package com.iran.visitor.example;

public class MainTest {
    public static void main(String[] args) {
        ObjectStructure o = new ObjectStructure();
        o.add(new Man());
        o.add(new Woman());

        Success success = new Success();
        o.accept(success);
    }
}
